<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>推荐好友</title>
    <link rel="stylesheet" type="text/css" href="./css/api.css" />
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="./css/style.css" />
    <script type="text/javascript" src="./script/api.js"></script>
    <script type="text/javascript" src="./script/aui-sharebox.js" ></script>
    <script type="text/javascript" src="./script/aui-tab.js" ></script>
    <link rel="stylesheet" type="text/css" href="./css/aui-slide.css" />
    <script type="text/javascript" src="./script/aui-slide.js"></script>
    <script type="text/javascript">
        function closeWin(){
            api.closeWin({
            });
        };
    </script>
</head>
<body>
    <style>
        body{background:#f9f7e8; height:auto;}
    </style>
    <!-- 头部 -->
    <header class="aui-bar aui-bar-nav" id="topbar"  style="background-color:#faca34;">
        <a class="aui-pull-left aui-btn" onclick="closeWin()">
            <span class="aui-iconfont aui-icon-left"></span>
        </a>
        <div class="aui-title">每日签到领大奖</div>
        <a class="aui-pull-right aui-bar-nav-r" tapmode onclick="openSharebox();">分享</a>
    </header>
</body>
<script type="text/javascript">

    function openSharebox(){

        var h = api.winHeight;

        api.openFrame({
         name: 'share',
         url: './roulettedraw2.html',
         rect: {
             x: 0,
             y: h-148,
             w: 'auto',
             h: 148
         },
         pageParam: {
             name: 'test'
         },
         bounces: false,
         bgColor: 'rgba(0,0,0,0)',
         vScrollBarEnabled: false,
         hScrollBarEnabled: false
     });
    }
</script>
<script type="text/javascript">
    apiready = function()
    {
      calculatToolWebUrl();
    };

  function calculatToolWebUrl()
  {

  var id = $api.getStorage('userid');

  var headerPos = $api.offset($api.dom('#topbar'));

      api.openFrame(
      {
          name: 'calculatToolWebUrl',
          url: 'http://www.big-wealth.com/thinkphp/public/index.php/signin/signin/app_index?id='+id,
          rect:
          {
              x: 0,
              y: headerPos.h,
              w: 'auto',
              h: 'auto'
          },
          pageParam: {name: 'test'},
          scaleEnabled:true,
          bounces: false,
          bgColor: 'rgba(255,255,255,255)',
          vScrollBarEnabled: true,
          hScrollBarEnabled: true
      });
  }

  function closeShare()
  {
    api.closeFrame({name: 'share'});

    api.closeFrame({name: 'closeShare'});
  }
</script>
</html>
